package org.dormi.learn.mainapp;

import org.dormi.learn.daomodule.Dao;
import org.dormi.learn.entitymodule.User;
import org.dormi.learn.usermodule.UserDao;

/**
 * @author : dormi330
 * @since : 2021/1/25/0025
 */
public class UserService {
    private static Dao<User> userDao = new UserDao();

    public static void main(String[] args) {
        // create then query
        userDao.add(1, new User("Julia"));
        userDao.add(2, new User("Allen"));

        userDao.listAll().forEach(System.out::println);
    }
}
